home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 2
/
Amoszine 2.adf
/
andrew_smith_source
/
Triangle.AMOS
/
Triangle.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
517b
|
32 lines
' Triangle draw
' Anchor first point
Repeat
XS=X Screen(X Mouse)
YS=Y Screen(Y Mouse)
Until Mouse Click=1
' Anchor second point
Gr Writing 2
Repeat
XE=X Screen(X Mouse)
YE=Y Screen(Y Mouse)
Draw XS,YS To XE,YE
Wait Vbl
Draw XS,YS To XE,YE
Until Mouse Click=1
Repeat
X=X Screen(X Mouse)
Y=Y Screen(Y Mouse)
Polyline XS,YS To XE,YE To X,Y To XS,YS
Wait Vbl
Polyline XS,YS To XE,YE To X,Y To XS,YS
Until Mouse Click=1
Gr Writing 0
Polyline XS,YS To XE,YE To X,Y To XS,YS